package com.example.demo.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Data
@Getter
@Setter
public class BookVO extends Book {
    private String id;
    private Date borrowtime;  //借书时间
    private Date returntime;  //还书时间

    private Integer page;
    private Integer limit;
    private Integer b;

    public BookVO() {
        if (page == null)
            b= 0;
        else
            b= (page - 1) * limit;
    }
}
